﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ManterSoftwareDeReproducao.aspx.cs" Inherits="ManterSoftwareDeReproducao" Title="Manter Software de Reprodução" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
         <div class="demoheading" style="width:400px">Manter Software De Reprodução</div>   
         <asp:Panel ID="Panel2" runat="server" CssClass="collapsePanelHeader" Height="20px" Width="400px">
               <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
               <div style="float: left;">Consultar Software De Reprodução</div>
               </div>
         </asp:Panel>
    <div style="width:400px">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AutoGenerateColumns="False" DataSourceID="osSoftwareReproducao">
                    <Columns>
                        <asp:BoundField DataField="Codigo" HeaderText="Codigo" 
                            SortExpression="Codigo" />
                        <asp:BoundField DataField="Nome" HeaderText="Nome" SortExpression="Nome" />
                        <asp:BoundField DataField="Fabricante" HeaderText="Fabricante" 
                            SortExpression="Fabricante" />
                        <asp:BoundField DataField="Tipo" HeaderText="Tipo" SortExpression="Tipo" />
                        <asp:TemplateField HeaderText="Atualiza/Remove">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbAtualiza" runat="server" 
                                    onclick="lbAtualiza_Click">Atualiza</asp:LinkButton>
                                &nbsp;<asp:LinkButton ID="lbRemove" runat="server" onclick="lbRemove_Click">Remove</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
    <asp:ObjectDataSource ID="osSoftwareReproducao" runat="server" 
        DataObjectTypeName="Negocios.SoftwareDeReproducao" DeleteMethod="Excluir" 
        InsertMethod="Insere" OldValuesParameterFormatString="original_{0}" 
        SelectMethod="ConsultaTodos" TypeName="Negocios.Software_De_ReproducaoBLL" 
        UpdateMethod="Atualizar"></asp:ObjectDataSource>
<br />
    <asp:Panel ID="Panel1" runat="server" CssClass="collapsePanelHeader" Height="20px" Width="400px">
        <div style="padding: 5px; cursor: pointer; vertical-align: middle;">
        <div style="float: left;"></div>
        </div>
    </asp:Panel>
                <table style="width: 100%" class ="divDados">
                    <tr class ="divOID">
                        <td style="width: 82px">
                            <asp:Label ID="lblCodigo" runat="server" Text="Código"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txCodigo" runat="server" Enabled="False"></asp:TextBox>
                            <asp:Button ID="btnNovo" runat="server" onclick="btnNovo_Click" Text="Novo" />
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 82px">
                            <asp:Label ID="lblNome" runat="server" Text="Nome"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtNome" runat="server" MaxLength="40" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 82px">
                            <asp:Label ID="lblFabricante" runat="server" Text="Fabricante"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtFabricante" runat="server" MaxLength="40" Enabled="False" 
                                ></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 82px">
                            <asp:Label ID="lblTipo" runat="server" Text="Tipo"></asp:Label>
                        </td>
                        <td>
                            <asp:RadioButtonList ID="rblTipo" runat="server" Enabled="False">
                                <asp:ListItem Value="1">1 - Imagem</asp:ListItem>
                                <asp:ListItem Value="2">2 - Vídeo</asp:ListItem>
                                <asp:ListItem Value="3">3 - Áudio</asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="btnGravar" runat="server" Text="Gravar" 
                                onclick="btnGravar_Click" Enabled="False" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnCancelar" runat="server" 
                                Text="Cancelar" onclick="btnCancelar_Click" Enabled="False" />
                        </td>
                    </tr>
                </table>
                <asp:Label ID="lblErro" runat="server" CssClass="erro"></asp:Label>
                <br />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>

